
// 该文件自动生成，请勿手动修改!!!
// 生成时间: 2021-04-20 20:59:35.0087277 &#43;0800 CST m=&#43;0.003566201	
// - by fox


namespace FoxGame.Network.Test {
	//协议号定义
	public class ProtocolId{
		
		public const int ReqRoleLogin = 2001 ;
		
		public const int ResRoleLogin = 2002 ;
		
		public const int ReqPlayerInfo = 1001 ;
		
		public const int ResPlayerInfo = 1002 ;
		
	}

	//协议号扩展函数
	
	public partial class ReqRoleLogin {
		public int GetProtocolID(){ return ProtocolId.ReqRoleLogin ; }
	}
	
	public partial class ResRoleLogin {
		public int GetProtocolID(){ return ProtocolId.ResRoleLogin ; }
	}
	
	public partial class ReqPlayerInfo {
		public int GetProtocolID(){ return ProtocolId.ReqPlayerInfo ; }
	}
	
	public partial class ResPlayerInfo {
		public int GetProtocolID(){ return ProtocolId.ResPlayerInfo ; }
	}
	

	//协议辅助函数
	public static class ProtocolHelper{
		public static Google.Protobuf.IMessage Parse(int protocolId,byte[] data){
			switch(protocolId){
				
				case ProtocolId.ReqRoleLogin : return ReqRoleLogin.Parser.ParseFrom(data);
				
				case ProtocolId.ResRoleLogin : return ResRoleLogin.Parser.ParseFrom(data);
				
				case ProtocolId.ReqPlayerInfo : return ReqPlayerInfo.Parser.ParseFrom(data);
				
				case ProtocolId.ResPlayerInfo : return ResPlayerInfo.Parser.ParseFrom(data);
				
			}
			return null;
		}

	}
}

